import { CdnImage } from "@/ui-components";
import { View, ViewProps } from "@tarojs/components";
import classNames from "classnames";

interface TreasuryUserItemProps extends ViewProps {
  image: string;
  text: string;
  textClassName?: string;
}

const TreasuryUserItem = (props: TreasuryUserItemProps) => {
  return (
    <View
      {...props}
      className={classNames('column-start-center', props.className)}
    >
      <CdnImage src={props.image} className='image-64' />
      <View className={classNames('text-small-primary mt-small', props.textClassName)}>{props.text}</View>
    </View>
  )
}

export default TreasuryUserItem